<?php 
$url="http://192.168.100.227/formacio_nova/login/inicio_sesion";
$agent= 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';

$curl_header = array('X-Requested-With: XMLHttpRequest','gestor:3ed07495fbe5dd662a57b887274ffee6cc0123aaeabf99f62ebb519ac0c5e9e7378395f9a88fcc5c8125ce8e9971bf0dc3bcb57f095668ed9335befe28f8d879');

$ch = curl_init();


	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	curl_setopt($ch, CURLOPT_VERBOSE, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HTTPHEADER,$curl_header);
	curl_setopt($ch, CURLOPT_REFERER, 'http://192.168.100.227/jocnet/registre.php');
	curl_setopt($ch, CURLOPT_POSTFIELDS,"club=fcb&cognoms=&data=13%2F03%2F2014&email=correderaverdejo%40gmail.com&email2=correderaverdejo".$i."%40gmail.com&info_jocnet=false&nom=mario&p=corredera&p2=corredera");
	curl_setopt($ch, CURLOPT_USERAGENT, $agent);
	curl_setopt($ch, CURLOPT_URL,$url);
	$result=curl_exec($ch);
	var_dump($result);


?>